-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RSDK-6857] support multiple connections #155
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM mod some commented out code, and one unimportant question.
micro-rdk/src/common/conn/server.rs
Outdated
} | ||
true | ||
} | ||
// fn last_error(&mut self) -> Option<ServerError> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove
@@ -100,7 +100,7 @@ pub async fn serve_web_inner( | |||
exec.clone(), | |||
)); | |||
|
|||
let mut srv = ViamServerBuilder::new(mdns, cloned_exec, client_connector, app_config) | |||
let mut srv = ViamServerBuilder::new(mdns, cloned_exec, client_connector, app_config, 3) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Below, does it matter that the ESP32 and native serve_web
functions have diverged, since the ESP32 one now takes the maximum as a parameter and the native one does not?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think its fine as long as we don't have a use case for native beyond testing we don't need to polish it too much
@@ -100,7 +100,7 @@ pub async fn serve_web_inner( | |||
exec.clone(), | |||
)); | |||
|
|||
let mut srv = ViamServerBuilder::new(mdns, cloned_exec, client_connector, app_config) | |||
let mut srv = ViamServerBuilder::new(mdns, cloned_exec, client_connector, app_config, 3) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should native
be permitted more than 3? Or do you want to keep it the same with the idea that it should be a fairly faithful reproduction of how an ESP32 micro-rdk behaves?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same comment as above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM as well
No description provided.